<!DOCTYPE html>
<html>
  <head>
    <title>test.html</title>
	
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <script type="text/javascript" src="js/jquery-1.11.1.js"></script>
    <script type="text/javascript" src="js/ajaxfileupload.js"></script>
    
	<script type="text/javascript">
    $(function() {
            $("#upload").click(function() {
            alert("123");
            var busipic = "";
            $.ajaxFileUpload({
            url : "/sofaGuest/upload/pic.do", // 需要链接到服务器地址
            secureuri : false,
            fileElementId : "picup", // 文件选择框的id属性（必须）
            dataType : "json",
            success : function(resMap) {
                alert("上传成功");
            }
        });
    });
    });
        </script>
	
  </head>
    
  <body>
    <div>
        <input type="file"  id="picup" name="picup" style="width:100%">
        <input type="button" id="upload" value="上传"/>
    </div>
  </body>
</html>
